package com.zbkj.crmeb.chant.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Accessors(chain = true)
public class SaveTakeAddressRequest implements Serializable {

    @ApiModelProperty(value = "id,新增不传")
    private Integer id;

    @ApiModelProperty(value = "区域类型 : 1 国内，2 港澳，3 海外")
    @Range(min = 1, max = 3, message = "区域类型 : 1 国内，2 港澳，3 海外")
    @NotNull(message = "区域类型不能为空")
    private Integer areaType;

    @ApiModelProperty(value = "国家")
    @NotBlank(message = "国家不能为空")
    private String region;

    @ApiModelProperty(value = "收货人所在省")
    @NotBlank(message = "收货人所在省不能为空")
    private String province;

    @ApiModelProperty(value = "收货人所在市")
//    @NotBlank(message = "收货人所在市不能为空")
    private String city;

    @ApiModelProperty(value = "城市id")
    @NotNull(message = "城市id不能为空")
    private Integer cityId;

    @ApiModelProperty(value = "收货人所在区")
//    @NotBlank(message = "收货人所在区不能为空")
    private String district;

    @ApiModelProperty(value = "收货人详细地址")
    @NotBlank(message = "详细地址不能为空")
    private String detail;

    @ApiModelProperty(value = "收货人姓名")
    @NotBlank(message = "收货人姓名不能为空")
    private String realName;

    @ApiModelProperty(value = "收货人号码")
    @NotBlank(message = "收货人号码不能为空")
    private String phone;

    @ApiModelProperty(value = "状态（0禁用  1启用）")
    @NotNull(message = "状态不能为空")
    private Integer status;

}